<?php
$this->Html->addCrumb('Newsletters');
?>
<h1 class="pageTitle">Newsletters</h1>

<?php echo $this->Html->image('dog_newsletter.jpg', array("alt"=>'Newsletters', "class"=>"right", "title"=>"Read our newsletters"))?>

<div>
    <?php //echo $this->Html->image('documentsImg.png', array("alt"=>'Documents', "class"=>"right"))?>
<?php
  if(isset($newsletters) && !empty($newsletters)) {
    echo '<ul>';
    foreach ($newsletters as $newsletter) {
      echo '<li>'.$this->Html->link($newsletter['Newsletter']['title'],'/'.$newsletter['Newsletter']['file_path'], array('title'=>'Newsletter for download', 'target'=>'new')).'</li>';
    }
    echo '</ul>';
    echo $this->element('main_pagination');
  } else {
    echo '<p>No newsletters are currently available for download.</p>';
  }
?>
</div>